


import FileUpload from "./fileupload/FileUpload.vue"
import QueryInput from "./queryinput/QueryInput.vue"

export default {
    name: 'ReasonHome',
    components: {
        FileUpload,
        QueryInput
    },
    data() {
        return {
            exampleFileSelected: false,
            files: [],
            resMsg: '',
            id: "",
            isUploading: false,
        }
    },
    methods: {
        handleExampleFileChange(val) {
            this.exampleFileSelected = val;
        },
        handleQuerySubmit(query) {
            console.log('提交的问题:', query)

        },
        updateFiles(newFiles) {
            this.files = newFiles;
        },
        updateResMsg(msg) {
            this.resMsg = msg;
        }
        ,
        updateId(id) {
            this.id = id;
        },
        updateIsUploading(val) {
            this.isUploading = val;
        },
        
    }
}

